import { useNavigate } from "react-router-dom"

export default function Home() {
  const navigate = useNavigate()

  const login = () => {
    navigate('/login')
  }
  return (
    <div>Home
      <button onClick={login}>  去登录</button>
    </div>
  )
}
